package com.study.algorithm.datastruct.tree.model;

public class BinaryTree extends BinaryTreeNode {

    private Integer weight;
    private Object data;

    @Override
    public BinaryTree getRightChildNode() {
        return (BinaryTree) super.getRightChildNode();
    }

    public void setRightChildNode(BinaryTree rightChildNode) {
        super.setRightChildNode(rightChildNode);
    }

    @Override
    public BinaryTree getLeftChildNode() {
        return (BinaryTree) super.getLeftChildNode();
    }

    public void setLeftChildNode(BinaryTree leftChildNode) {
        super.setLeftChildNode(leftChildNode);
    }

    public Integer getWeight() {
        return weight;
    }

    public void setWeight(Integer weight) {
        this.weight = weight;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
